package com.ddd.test.dto.cmd;

import java.io.Serializable;
//import net.sf.oval.constraint.NotBlank;
//import net.sf.oval.constraint.NotEmpty;
//import net.sf.oval.constraint.NotNull;
//import net.sf.oval.constraint.Size;
import java.util.List;

/**
 * 交互层sales数据对象
 *
 */
public class SalesDTO implements Serializable {

//  @NotNull(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotEmpty(errorCode = "001", message = "[code]${parameter.not.null}")
//  @NotBlank(errorCode = "001", message = "[code]${parameter.not.null}")
  private String code;

//  @Size(min = 5, max = 50, errorCode = "001", message = "[name]${parameter.size.invalid}")
  private String name;

  private String description;

  private Integer level;

  private List<String> salesAreaList;
  
  private static final long serialVersionUID = 1L;

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code == null ? null : code.trim();
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description == null ? null : description.trim();
  }

  public Integer getLevel() {
    return level;
  }

  public void setLevel(Integer level) {
    this.level = level;
  }
  
  public List<String> getSalesAreaList() {
	    return salesAreaList;
  }

  public void setSalesAreaList(List<String> salesAreaList) {
	    this.salesAreaList = salesAreaList;
  }
	  
  
  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", code=").append(code);
    sb.append(", name=").append(name);
    sb.append(", description=").append(description);
    sb.append(", level=").append(level);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }
}